<!DOCTYPE html>
<html>
<head>
    <title>${sysEn}-广告类型</title>
     <#include "/common/com_edit_css.ftl" >
</head>
<body>
    <div class="wrapper wrapper-content fadeInRight commoneditpage">
        <div class="row">
            <div class="col-lg-8 m-auto">
                <div class="ibox ">
                    <div class="ibox-title">
                        <h5>${actNm}-广告类型</h5>
                    </div>
                    <div class="ibox-content">
                        <form id="form" action="${ctx}/cms_media_type_edit_submit.do" method="post">
                            <input type="hidden" name="id" id="id" value="${obj.id?c}">
                            <div class="form-group row"><label class="col-lg-2 col-form-label must">类别名称：</label>
                                <div class="col-lg-10">
                                    <input type="text" placeholder=""
                                           value="${obj.name}"
                                           id="name" name="name" class="form-control"
                                           data-easyform="length:1 60;"
                                           data-message="类别名称为长度[1-30]字符"
                                          />
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-lg-2 col-form-label must">CODE：</label>
                                <div class="col-lg-10">
                                    <input type="text" placeholder="" id="code"
                                           value="${obj.code }"
                                           name="code" data-easyform="length:1 16;"
                                           data-message="CODE为长度[1-16]字母"
                                           class="form-control" />
                                </div>
                            </div>
 
                            <div class="form-group row ">
                                <div class="col-lg-offset-2 col-lg-10">
                                    <button class="btn btn-sm btn-primary" type="button" id="signBtn" tg="ensure">确定</button>
                                    <button class="btn btn-sm btn-white" type="button" id="cancelBtn" tg="cancel">取消</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <#include "/common/com_edit_js.ftl">
    <script type="text/javascript">
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
        $(document).ready(function () {
            EditPager.init({
                container:$("#form"),
                param:function () {
                    var id = $("#id").val();
                    return {
                        id:id?id:0,
                        name:$("#name").val(),
                        code:$("#code").val(),
                    };
                }
            });
        });

    </script>
</body>
</html>
